package com.zscat.mallplus.center.controller;

import java.util.Date;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zscat.mallplus.center.BaseController;
import com.zscat.mallplus.center.entity.CenterAppt;
import com.zscat.mallplus.center.service.ICenterApptService;

@RestController
@RequestMapping("/center/appt")
public class CenterApptController extends BaseController{

	@Resource
	private ICenterApptService centerApptService;
	
    @GetMapping
    public Object add(CenterAppt centerAppt)
    {
    	centerAppt.setCreateTime(new Date());
        return toAjax(centerApptService.save(centerAppt));
    }

}
